<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb">
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_denglu_00')?></cite></a>
        <a href="javascript:;"><?=L('tpl_denglu_01')?></a>
        <a href="<?=site_url('setting/denglu')?>"><?=L('tpl_denglu_02')?></a>
    </span>
    <form class="layui-form layui-form-pane" action="<?=site_url('setting/denglu_save')?>" method="post">
        <fieldset class="layui-elem-field" style="margin-top: 15px;">
            <legend><?=L('tpl_denglu_02')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_denglu_03')?></label>
                    <div class="layui-input-block" onclick="cscms.show_hide('appmode','CS_Appmode')">
                        <input name="CS_Appmode" title="<?=L('tpl_denglu_04')?>" type="radio" value="1" <?php if(CS_Appmode==1) echo ' checked="checked"';?>>
                        <input name="CS_Appmode" title="<?=L('tpl_denglu_05')?>" type="radio" value="0" <?php if(CS_Appmode==0) echo ' checked="checked"';?>>
                    </div>
                </div>
                <div class="appmode appmode1" <?php if(CS_Appmode==0) echo 'style="display:none";';?>>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                        <div class="layui-input-inline">
                            <a class="apply-link colorl" target="_blank" href="http://www.chshcms.com/member/denglu.html"><?=L('tpl_denglu_18')?></a>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">APP_ID</label>
                        <div class="layui-input-inline">
                            <input type="text" name="CS_Appid" placeholder="APP_ID" value="<?=CS_Appid?>" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">APP_KEY</label>
                        <div class="layui-input-inline">
                           <input class="layui-input" placeholder="APP_KEY" name="CS_Appkey" type="text" value="<?=CS_Appkey?>"/>
                        </div>
                    </div>
                </div>
                <div class="appmode appmode0" <?php if(CS_Appmode==1) echo 'style="display:none";';?>>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><?=L('tpl_denglu_07')?></label>
                        <div class="layui-input-block" onclick="cscms.show_hide('mode','mode')">
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_08')?>"   value="1" checked>
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_09')?>" value="2" >
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_10')?>" value="3" >
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_11')?>" value="4" >
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_12')?>" value="5" >
                            <input name="mode" type="radio" title="<?=L('tpl_denglu_13')?>" value="6" >
                        </div>
                    </div>
                    <fieldset class="layui-elem-field mode mode1">
                        <legend><?=L('tpl_denglu_14')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_15')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('qq','CS_Qqmode')">
                                    <input name="CS_Qqmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Qqmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Qqmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Qqmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="qq qq1" <?php if(CS_Qqmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://connect.qq.com/"><?=L('tpl_denglu_19')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_ID</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Qqid" placeholder="APP_ID" value="<?=CS_Qqid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">APP_KEY</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="APP_KEY" name="CS_Qqkey" type="text" value="<?=CS_Qqkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field mode mode2" style="display: none;">
                        <legend><?=L('tpl_denglu_20')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_21')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('wb','CS_Wbmode')">
                                    <input name="CS_Wbmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Wbmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Wbmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Wbmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="wb wb1" <?php if(CS_Wbmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://open.weibo.com/"><?=L('tpl_denglu_22')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Key</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Wbid" placeholder="App Key" value="<?=CS_Wbid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Secret</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="App Secret" name="CS_Wbkey" type="text" value="<?=CS_Wbkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field mode mode3" style="display: none;">
                        <legend><?=L('tpl_denglu_23')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_24')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('bd','CS_Bdmode')">
                                    <input name="CS_Bdmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Bdmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Bdmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Bdmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="bd bd1" <?php if(CS_Bdmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://developer.baidu.com/"><?=L('tpl_denglu_36')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">API KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Bdid" placeholder="API KEY" value="<?=CS_Bdid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Secret</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="App Secret" name="CS_Bdkey" type="text" value="<?=CS_Bdkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field mode mode4" style="display: none;">
                        <legend><?=L('tpl_denglu_25')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_26')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('rr','CS_Rrmode')">
                                    <input name="CS_Rrmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Rrmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Rrmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Rrmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="rr rr1" <?php if(CS_Rrmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://dev.renren.com/"><?=L('tpl_denglu_27')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">API KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Rrid" placeholder="API KEY" value="<?=CS_Rrid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Secret</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="App Secret" name="CS_Rrkey" type="text" value="<?=CS_Rrkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field mode mode5" style="display: none;">
                        <legend><?=L('tpl_denglu_28')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_29')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('kx','CS_Kxmode')">
                                    <input name="CS_Kxmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Kxmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Kxmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Kxmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="kx kx1" <?php if(CS_Kxmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://open.kaixin001.com/"><?=L('tpl_denglu_30')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">API KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Kxid" placeholder="API KEY" value="<?=CS_Kxid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Secret</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="App Secret" name="CS_Kxkey" type="text" value="<?=CS_Kxkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field mode mode6" style="display: none;">
                        <legend><?=L('tpl_denglu_31')?></legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><?=L('tpl_denglu_32')?></label>
                                <div class="layui-input-block" onclick="cscms.show_hide('db','CS_Dbmode')">
                                    <input name="CS_Dbmode" title="<?=L('tpl_denglu_16')?>" type="radio" value="1" <?php if(CS_Dbmode==1) echo ' checked="checked"';?>>
                                    <input name="CS_Dbmode" title="<?=L('tpl_denglu_17')?>" type="radio" value="0" <?php if(CS_Dbmode==0) echo ' checked="checked"';?>>
                                </div>
                            </div>
                            <div class="db db1" <?php if(CS_Dbmode==0){echo 'style="display:none"';}?>>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><?=L('tpl_denglu_06')?></label>
                                    <div class="layui-input-inline">
                                        <a class="apply-link colorl" target="_blank" href="http://developers.douban.com/"><?=L('tpl_denglu_33')?></a>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">API KEY</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="CS_Dbid" placeholder="API KEY" value="<?=CS_Dbid?>" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">App Secret</label>
                                    <div class="layui-input-inline">
                                       <input class="layui-input" placeholder="App Secret" name="CS_Dbkey" type="text" value="<?=CS_Dbkey?>"/>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block noborder">
                        <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_denglu_34')?></button>
                        <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_denglu_35')?></button>
                    </div>
                </div>
            </div>
    </form>
<script type="text/javascript">
    cscms.init();
</script>
</body>
</html>